<script setup lang="ts">
import useUserStore from './stores/user';

import zhCn from 'element-plus/es/locale/lang/zh-cn'

const userStore = useUserStore();

onMounted(() => {
  if (userStore.isLogin) {
    userStore.getInfo();
  }
});

</script>

<template>
  <el-config-provider :locale="zhCn">
    <router-view />
  </el-config-provider>
</template>

<style scoped lang="scss">
.title {
  .ceshi {
    font-size: 1rem;
  }
}

main {}
</style>
